package testdatagenerator;

import java.util.Vector;


public class GeneralMethods {
	
	//takes the integer that is closest on the number line
	//to the current number that is also >= the current number
	public static int ceil(double x){
		if (x==((int) x)){
			return ((int)x);
		}
		return ((int)x)+1;
	}
	
	//adds Node to toBeAppendedTo only if it is not in checkAgainst.
	public static void addToVec(Vector<Node> toBeAppendedTo, Vector<Node> checkAgainst,  Node item){
		if (!checkAgainst.contains(item)){
			toBeAppendedTo.add(item);
		}
	}
}
